class fn{
    constructor(){}
    init()
    {
        console.log('先吃饭');
        return this;
    }
    dom()
    {
        console.log('后睡觉');
    }
}
let wrap = new fn();
wrap.init().dom();